Optimal. Leaf size=189 \[ \frac {2 \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}-\frac {2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {26 \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d \sqrt {a \cos (c+d x)+a}}-\frac {\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.42, antiderivative size = 189, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {4222, 2779, 2984, 12, 2782, 205} \[ \frac {2 \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}-\frac {2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {26 \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d \sqrt {a \cos (c+d x)+a}}-\frac {\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 205
Rule 2779
Rule 2782
Rule 2984
Rule 4222
Rubi steps
\begin {align*} \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{\sqrt {a+a \cos (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}} \, dx\\ &=\frac {2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {a-4 a \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}} \, dx}{5 a}\\ &=-\frac {2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}-\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {13 a^2}{2}+a^2 \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}} \, dx}{15 a^2}\\ &=\frac {26 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}-\frac {2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}-\frac {\left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {15 a^3}{4 \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{15 a^3}\\ &=\frac {26 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}-\frac {2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}-\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx\\ &=\frac {26 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}-\frac {2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}+\frac {\left (2 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{2 a^2+a x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{d}\\ &=-\frac {\sqrt {2} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {26 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}-\frac {2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 7.76, size = 1542, normalized size = 8.16 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.23, size = 141, normalized size = 0.75 \[ \frac {\frac {15 \, \sqrt {2} {\left (a \cos \left (d x + c\right )^{3} + a \cos \left (d x + c\right )^{2}\right )} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right )}{\sqrt {a}} + \frac {2 \, \sqrt {a \cos \left (d x + c\right ) + a} {\left (13 \, \cos \left (d x + c\right )^{2} - \cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{15 \, {\left (a d \cos \left (d x + c\right )^{3} + a d \cos \left (d x + c\right )^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (d x + c\right )^{\frac {7}{2}}}{\sqrt {a \cos \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.25, size = 294, normalized size = 1.56 \[ \frac {\left (15 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\cos ^{3}\left (d x +c \right )\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+45 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\cos ^{2}\left (d x +c \right )\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+45 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \cos \left (d x +c \right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+15 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+13 \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right ) \sqrt {2}-\sqrt {2}\, \cos \left (d x +c \right ) \sin \left (d x +c \right )+3 \sin \left (d x +c \right ) \sqrt {2}\right ) \cos \left (d x +c \right ) \left (\sin ^{4}\left (d x +c \right )\right ) \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {7}{2}} \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \sqrt {2}}{15 d \left (-1+\cos \left (d x +c \right )\right )^{2} \left (1+\cos \left (d x +c \right )\right )^{3} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}}{\sqrt {a+a\,\cos \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________